<template lang="pug">
	.panel.panel-default
		.panel-heading
			h3.panel-title 全局设置
		.panel-body
			include /pugs/setting.pug
</template>
<script>
	module.exports = {
		mixins: [
			require('mixin/rpc'),
			require('mixin/options/index'),
		],
		data () {
			return {
				disableOptions: [
					'checksum',
					'out',
					'select-file',
					'index-out',
					'pause',
					'gid',
				],
			}
		},
		methods: {
			submit () {
				this.changeGlobalOption(this.options)
					.then(() => {
						this.schema.save()
						this.$router.go({
							name: 'index',
						})
					})
			},
		},
		components: {
			numberInput: require('components/numberInput'),
		},
	}
</script>